try:
    f = open("C:/abc.txt", "r", encoding="utf-8")
except:
    print("出现异常，因为文件不存在，我将open的模式，改为w模式去打开")
    f = open("C:/abc.txt", "w", encoding="utf-8")